This document serves as a vignette on the new functionality presented in LOBtools. We use the XYZ data set too illustrate the new tools available for lipid screening and data visualization in this package.

Much like previous LOBSTAHS package vignettes, this will not serve as a comprehensive overview of the XCMS and CAMERA packages, as many great tutorials and vignettes already exist for these packages. However, we will provide the code used in pre-processing our samples for screening by LOBSTAHS and LOBtools which can be found here (URL).


Load Data

#read mzXML files into an OnDiskMSnExp object
mzXMLfiles <- list.files("C:/Users/henryholm/OneDrive - Woods Hole Oceanographic Institution/Desktop/JenkinAE1812ctd/mzXML_ms1_pos_mode/", recursive = TRUE, full.names = TRUE)
rawSpec <- MSnbase::readMSData(mzXMLfiles, centroided=TRUE, mode="onDisk")

Find MS2

peaklist <- getLOBpeaklist(LOBset)

pos_fa<- LOBtools::pos_fa
pos_gylfa <- LOBtools::pos_gylfa 
names(pos_gylfa) <- paste("gly",names(LOBtools::pos_gylfa),sep = "")

LOBtools::LOB_plotMS2(XCMSnExp = rawSpec,
                      peakdata = subset(peaklist,species == "SQDG")[50,],
                      diagnostic = c(pos_fa,pos_gylfa))

RtF Screen

Hummel <- read.csv(file = "C:/Users/henryholm/Downloads/Hummel RtF Master Database - rtf_data.csv")

LOBset <- ptH2O2lipids$LOBSet

LOBset_rtf <- LOBtools::LOB_RTFsort(peakdata = LOBset,Hummel)

LOBtools::LOB_plotMS2()
test <- LOB_lpsolveAPI(LOBset,choose_class = "MGDG",use_weight = TRUE,use_ms2 = FALSE,plot_data = TRUE)

LOB_plotdata(peakdata = test, plot_type = "RTF")


hholm/LOB_tools documentation built on Jan. 28, 2024, 12:08 p.m.